package com.laiketui.app.controller.banner;

import com.laiketui.common.api.banner.BannerService;
import com.laiketui.core.domain.Result;
import com.laiketui.domain.vo.banner.BannerVo;
import com.laiketui.domain.vo.index.IndexDataVo;
import com.laiketui.root.annotation.HttpApiMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * banner数据展示
 */
@RestController
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @PostMapping("bannerList")
    @HttpApiMethod(urlMapping = "app.banner.bannerList")
    public Result bannerList(BannerVo vo){
        return Result.success(bannerService.bannerList(vo));
    }
}
